package ChainOfResponsibilityPattern;

public class ErrorLogger extends Logger{

    public ErrorLogger(Logger nextLogger) {
        super(nextLogger);
    }

    public ErrorLogger(int level) {
        super();
        this.level = level;
    }

    void write(String message) {
        System.out.println("error: "+message);
    }
}
